import Vue from 'vue'
import 'normalize.css/normalize.css' // A modern alternative to CSS resets
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
import locale from 'element-ui/lib/locale/lang/zh-CN' // lang i18n
import global_ from './components/global/global.vue' //引入全局组件
import '@/styles/index.scss' // global css
import 'nprogress/nprogress.css'
import App from './App'
import store from './store'
import router from './router'
import axios from 'axios'
import '@/icons' // icon
import '@/permission' // permission control
localStorage.setItem('id', '1')
localStorage.setItem('navBarFlag', true)
Vue.use(ElementUI, { locale })
Vue.prototype.$axios=axios
Vue.config.productionTip = false
Vue.prototype.GLOBAL = global_.BASE_URL //修改原型

new Vue({
    el: '#app',
    router,
    store,
    render: h => h(App),
    create() {}
})
